#   -*- mode: makefile; coding: utf-8; -*-
#
#   Copyright 2008 Asier Aguirre <asier.aguirre@gmail.com>
#   This file is part of Intromit.
#
#   Intromit is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   Intromit is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with Intromit.  If not, see <http://www.gnu.org/licenses/>.

LIBTOOL = @LIBTOOL@

noinst_LTLIBRARIES = libintromit.la

libintromit_la_LDFLAGS = -lstdc++ @LIB_LDFLAGS@ -lbfd -ldl
libintromit_la_LIBADD  = \
	../util/string.lo ../util/util.lo ../util/file_mng.lo
libintromit_la_SOURCES = \
	elf.cc elf.hh dwarf.cc dwarf.hh metadata.cc metadata.hh \
	source.cc source.hh config.cc config.hh

bin_PROGRAMS = intromit

intromit_LDFLAGS = -lstdc++ @LIBDW_LDFLAGS@ -lbfd -ldl
intromit_LDADD   = elf.lo dwarf.lo metadata.lo source.lo config.lo \
		   ../util/string.lo ../util/util.lo ../util/file_mng.lo
intromit_SOURCES = intromit.cc intromit.hh ../config.h


INCLUDES = -I../util

EXTRA_DIST =

MAINTAINERCLEANFILES =  Makefile.in 

clean-local:
	rm -rf *~ *.da
